﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PCS_Linh.lab02
{
    class SumMul
    {
        public void run()
        {
            Console.WriteLine("Please enter any number: ");
            int num = Convert.ToInt32(Console.ReadLine());
            if (num <= 0)
            {
                Console.WriteLine("The radius must be a positive number");
            }
            else
            {

                int sum = 0;
                int mul = 1;
                do
                {
                    sum += num % 10;
                    mul *= num % 10;

                } while (true);

            }
        }
    }
}
